

using System;
using System.Collections.Generic;
using System.Text;
using EntityLayer;
using System.Data;
using DataAccessLayer;

namespace DataLayer
{
	public class datEntryReferrers
	{
		public datEntryReferrers()
		{
		}
		
		#region  Code Factory Generated Methods
		public void InsertEntryReferrers(entEntryReferrers parEntEntryReferrers, DbConnector parDbConnector)
		{
			DbParamCollection insDbParamCollection = new DbParamCollection();
			insDbParamCollection.Add("@pEntryContentId",parEntEntryReferrers.EntryContentId);
			insDbParamCollection.Add("@pReferrerId",parEntEntryReferrers.ReferrerId);
			insDbParamCollection.AddOutput("@pEntryReferrerId",DbType.Int32);
			parDbConnector.ExecuteNonQuery("InsertEntryReferrers",insDbParamCollection);
			parEntEntryReferrers.EntryReferrerId = Convert.ToInt32(insDbParamCollection.GetOutPutParameter().Value);
		}
		#endregion
        public void DeleteEntryReferrersByEntryContentId(entEntryReferrers parEntEntryReferrers, DbConnector parDbConnector)
        {
            DbParamCollection insDbParamCollection = new DbParamCollection();
            insDbParamCollection.Add("@pEntryContentId", parEntEntryReferrers.EntryContentId);
            parDbConnector.ExecuteNonQuery("DeleteEntryReferrersByEntryContentId", insDbParamCollection);
        }
	}
}